package pta;


import java.math.BigInteger;
import java.util.Scanner;

public class java8_7 {

	public static void main(String[] args) {
		
	
		Scanner sc = new Scanner(System.in);
	while(true) {	
		
		
		String d = sc.nextLine();

		BigInteger sum = new BigInteger("0");
		while(! sum.equals("e")&&! sum.equals("E"))
		{
		
			BigInteger b = new BigInteger(d);
			sum=sum.add(b);
			d=sc.nextLine();
	     
		}
		
			System.out.println(sum);
	 
		
		
		
	}
	}

}
